package com.eden.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;
@Data
public class CommentDto {

        @JsonSerialize(using = ToStringSerializer.class)
        private Long id;

        private UserDto author;//作者

        private String content;

        private List<CommentDto> childrens;//子评论

        private String createDate;

        private Integer level;//层级

        private UserDto toUser;


}
